<?php $this->load->view('common/head');?>

<?php $this->load->view('common/header');?>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <?php $this->load->view('common/sidebar');?>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <?php $this->load->view('common/breadcrumbs');?>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">

                <?php $this->load->view('common/set');?>

                <!-- /section:settings.box -->
                <div class="row">
                    <!-- <form class="form-inline" action="" method="get">
                        <label class="inline">用户搜索</label>
                        <select name="field" class="form-control">
                            <option value="user">用户名</option>
                            <option value="phone">电话</option>
                            <option value="qq">QQ</option>
                            <option value="email">邮箱</option>
                        </select>
                        <input type="text" name="keyword" value="" class="form-control">
                        <label class="inline">&nbsp;&nbsp;排序：</label>
                        <select name="order" class="form-control">
                            <option  value="asc">注册时间升</option>
                            <option  value="desc">注册时间降</option>
                        </select>
                        <button type="submit" class="btn btn-purple btn-sm">
                            <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
                            查询
                        </button>
                        <span class="btn btn-purple btn-sm" id="addshop">
                            <span class="ace-icon fa fa-user icon-on-right bigger-110"></span>
                            新增商户
                        </span>
                    </form> -->

                    <div class="col-xs-12">

                        </div>
                        <table class="table table-striped table-bordered">
                            <thead>
                            <tr>
                                <th class="center"><input class="check-all" type="checkbox" value=""></th>
                                <th>商品名称</th>
                                <th>用户</th>
                                <th>追评</th>
                                <th>评论图片</th>
                                <th class="center">评论内容</th>
                                <th class="center">商家回复</th>
                                <th>评论时间</th>
                                <th class="center">回复时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if($comments){
                                foreach ($comments as $key => $v) {?>
                                    <tr>
                                        <td><input class="uids" type="checkbox" name="gids[]" value="<?php echo $val['comment_id'];?>"></td>
                                        <td><?php echo $v['shop_title'] ?></td>
                                        <td><?php echo $v['user_name'] ?></td>
                                        <td><?php echo $v['comment_pid'] ?></td>
                                        <td><?php echo $v['comment_cover'] ?></td>
                                        <td><?php echo $v['comment_content'] ?></td>
                                        <td><?php echo $v['comment_content_replay'] ?></td>
                                        <td><?php echo date("Y-m-d H:i:s",$v['comment_add_time']) ?></td>
                                        <td><?php echo date("Y-m-d H:i:s",$v['comment_replay_time']) ?></td>
                                    </tr>
                                <?php } ?>
                                <?php }else{?>

                                <?php } ?>
                            
                            
                            </tbody>
                        </table>
<!--                        {$page}-->
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
    </div><!-- /.main-content -->

<?php $this->load->view('common/footer');?>
</div><!-- /.main-container -->

<?php $this->load->view('common/footerjs');?>
<!-- inline scripts related to this page -->
<script type="text/javascript">

    $(function () {
        $("#officialnews ul").html('<div class="ace-icon fa fa-spinner fa-spin orange"></div>');
    })
    $("#addshop").click(function () {
        window.location.href="add";
    });

</script>
</body>
</html>
